﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using GrayParrot.Configuration;

namespace GrayParrot.Caching.MemoryCache.Configuration
{
    public static class MemoryCacheSettingsExtension
    {
        public static string GetCustomSetting(this IConfigurationManagerHelper value)
        {
            string retValue = string.Empty;

            MemoryCacheSettings cfg = (MemoryCacheSettings) MemoryCacheSettings.GetConfiguration(@"GrayParrotGroup/CacheSettings");
            retValue = cfg.CustomSetting;

            return retValue;
        }
    }
}
